var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.get('/login',function(req,res){
    let phone = req.query;
    // bcrypt.hash(phone,saltRound,(err,hashPwd)=>{
    //   if(!err){
        res.send({
          code:1,
          msg:'登录成功',
          name:'Lemon',
          hashPwd:hashPwd
        })
    //   }
    // })
   
})


module.exports = router;
